package com.example.building_material_mannager.service.impl;

import com.example.building_material_mannager.entity.CollectionFlow;
import com.example.building_material_mannager.mapper.CollectionFlowMapper;
import com.example.building_material_mannager.service.CollectionFlowService;
import com.example.building_material_mannager.util.PageUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CollectionFlowServiceImpl implements CollectionFlowService {
    @Resource
    CollectionFlowMapper collectionFlowMapper;
    @Override
    public PageUtil<List<CollectionFlow>> selectCollectionFlow(CollectionFlow collectionFlow) {
        List<CollectionFlow> collectionFlows=collectionFlowMapper.selectCollectionFlow(collectionFlow);
        PageUtil<List<CollectionFlow>> pageBean=new PageUtil<>();
        pageBean.setData(collectionFlows);
        return pageBean;
    }
}
